package com.brush.web.controller;

import com.brush.app.domain.resp.userlevel.AppUserLevelResp;
import com.brush.app.service.AppUserLevelService;
import com.brush.common.core.controller.BaseController;
import com.brush.common.core.domain.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "后台-手机用户端等级API")
@RestController
@RequestMapping(value = "/admin/userlevel")
public class UserLevelController extends BaseController {

    @Autowired
    private AppUserLevelService appUserLevelService;

    @PreAuthorize("@ss.hasPermi('system:user:list')")
    @GetMapping(value = "/all")
    public R<List<AppUserLevelResp>> findAll(){
        List<AppUserLevelResp> resp=this.appUserLevelService.findAll();
        return R.ok(resp);
    }



}
